#include "DRESP1Data.h"

#include "DataStructure/Common/Validation.h"

using namespace SG::DataStructure::FEM;

bool SG::DataStructure::FEM::operator==(const DRESP1Data::ATTIData& val1,
                                        const DRESP1Data::ATTIData& val2) {
  FIELD_COMPARE(m_ATTI)
  return true;
}

bool SG::DataStructure::FEM::operator==(const DRESP1Data& val1,
                                        const DRESP1Data& val2) {
  FIELD_COMPARE(m_id)
  FIELD_COMPARE_ARR(m_LABEL, 8)
  FIELD_COMPARE_ARR(m_RTYPE, 8)
  FIELD_COMPARE_ARR(m_PTYPE, 8)
  FIELD_COMPARE(m_RPSID)
  FIELD_COMPARE_ARR(m_NTUSED, 4)
  FIELD_COMPARE(m_AFPMID)
  FIELD_COMPARE(m_REGION)
  FIELD_COMPARE(m_ATTA)
  FIELD_COMPARE(m_ATTBI)
  FIELD_COMPARE(m_ATTBR)
  FIELD_COMPARE(m_domainId)
  return true;
}